package tst.gwt.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalSplitPanel;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * SplitPanel demo.
 */
public class SplitPanelExample implements EntryPoint {
	String TEXT_FOR_PANEL =
			  "11111 111111 111111 111111 111111 111111 1111111 111111 "
			+ "22222 222222 222222 222222 222222 222222 2222222 222222 "
			+ "33333 333333 333333 333333 333333 333333 3333333 333333 "
			+ "44444 444444 444444 444444 444444 444444 4444444 444444 "
			+ "55555 555555 555555 555555 555555 555555 5555555 555555 "
			+ "66666 666666 666666 666666 666666 666666 6666666 666666 "
			+ "77777 777777 777777 777777 777777 777777 7777777 777777 "
			+ "88888 888888 888888 888888 888888 888888 8888888 888888 "
			+ "99999 999999 999999 999999 999999 999999 9999999 999999 "
			+ "00000 000000 000000 000000 000000 000000 0000000 000000 ";

	public void onModuleLoad() {

		HorizontalSplitPanel horizontalSplitPanel = new HorizontalSplitPanel();

		horizontalSplitPanel.setLeftWidget(new HTML(TEXT_FOR_PANEL));
		horizontalSplitPanel.setRightWidget(new HTML(TEXT_FOR_PANEL));
		horizontalSplitPanel.setSize("100%", "450px");

		RootPanel.get().add(horizontalSplitPanel);
	}
}
